package com.ruoyi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.domain.entity.User;

public interface UserService extends IService<User> {
    User getUserByPhone(String phone);
    boolean updatePassword(String phone, String password);

    boolean checkPassword(String phone, String password);

    String getPasswordByPhone(String phone);

    boolean updateUserInfo(User user);

    User getUserByEmail(String email);

    void updatePhoneByOldPhone(String oldPhone, String newPhone);

    void logoutUser(String phone);
}
